package com.maxqaq.vo;

import com.maxqaq.entity.EasyUser;
import com.vdurmont.emoji.EmojiParser;
import lombok.Data;

/**
 */
@Data
public class WxLoginVo {
    private String code;
    private EasyUser userInfo;
    private String phoneNumber;
    private String msgCode;

    public EasyUser getUserInfo() {
        String nickName = userInfo.getNickName();
        userInfo.setNickName(EmojiParser.parseToAliases(nickName,EmojiParser.FitzpatrickAction.REMOVE));
        return userInfo;
    }
}
